﻿using System.Collections.Generic;
using Actya.Core.SiteStructure;
using Actya.Core.Widgets;

namespace Actya.Web.ViewModels.Admin
{
	public class LayoutWidgetsViewModel
	{
		public LayoutWidgetsViewModel(PageLayout pageLayout, string[] contentRegions, IEnumerable<WidgetType> widgetTypes, IDictionary<string, string> widgetTypesByWidgetId)
		{
			this.PageLayout = pageLayout;
			this.AvailableWidgetTypes = widgetTypes;
			this.ContentRegions = contentRegions;
			this.WidgedTypesByWidgetId = widgetTypesByWidgetId;
		}

		public PageLayout PageLayout { get; set; }
		public string[] ContentRegions { get; set; }
		public IEnumerable<WidgetType> AvailableWidgetTypes { get; set; }
		public IDictionary<string, string> WidgedTypesByWidgetId { get; set; }
	}
}